<template>
	<view>
		<view class="headPicture">
			<image src="../../static/background/headBackground.jpg" mode=""></image>
		</view>
		<view class="container">
			<image class="background" src="https://gd-hbimg.huaban.com/c46ef03b3a30d53d99f07f7971833156763c0b33ff218-xHtCAs_fw480webp" mode=""></image>
			<section v-if="select===1" class="section1">
				<view class="button" v-for="item in list1">{{item}}</view>
			</section>
			
			<section v-if="select===2" class="section2">
				<view class="button" v-for="item in list2">{{item}}</view>
			</section>
			
			<view class="selectTag">
				<view :class="{Tag: 'true', TagActive: select===1}" @click="changeTag(1)">前七天工作信息</view>
				<view :class="{Tag: 'true', TagActive: select===2}" @click="changeTag(2)">后七天工作信息</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				select: 1,
				list1: [
					'x月x号(第前1天)志愿信息',
					'x月x号(第前1天)志愿信息',
					'x月x号(第前1天)志愿信息',
					'x月x号(第前1天)志愿信息',
					'x月x号(第前1天)志愿信息',
					'x月x号(第前1天)志愿信息',
					'x月x号(第前1天)志愿信息',
				],
				list2: [
					'x月x号(后6天)志愿报名',
					'x月x号(后6天)志愿报名',
					'x月x号(后6天)志愿报名',
					'x月x号(后6天)志愿报名',
					'x月x号(后6天)志愿报名',
					'x月x号(后6天)志愿报名',
					'x月x号(后6天)志愿报名',
				]
			}
		},
		methods: {
			 changeTag(id){
				 this.select = id
			 }
		}
	}
</script>

<style lang="less" scoped>
	.headPicture{
		width: 100%;
		height: 296rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}
	.container{
		width: 100%;
		min-height: 1037rpx;
		position: absolute;
		top: 253rpx;
		border-top-left-radius: 15px;
		border-top-right-radius: 15px;
		background-color: #fff;
		z-index: 1;
		.section1{
			display: flex;
			flex-wrap: wrap;
			justify-content: space-around;
			padding-top: 80rpx;
			view{
				padding: 25rpx;
				padding-top: 38rpx;
				text-align: center;
				opacity: 1;
				background-color: #F0F5FF;
				z-index: 999;
				width: 237rpx;
				height: 146rpx;
				box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.3);
				border-radius: 14px;
				margin-right: 16rpx;
				margin-bottom: 63rpx;
				font-size: 12px;
			}
		}
		.section2{
			display: flex;
			flex-wrap: wrap;
			justify-content: space-around;
			padding-top: 80rpx;
			view{
				padding: 65rpx;
			    padding-top: 42rpx;
			    text-align: center;
			    opacity: 1;
			    background-color: #F0F5FF;
			    z-index: 999;
			    width: 319rpx;
			    height: 143rpx;
			    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.3);
			    border-radius: 31px;
			    margin-bottom: 63rpx;
			    font-size: 12px;
			}
		}
		
		.selectTag{
			    width: 90%;
			    height: 107rpx;
			    display: flex;
				justify-content: space-between;
			    position: absolute;
			    bottom: -1px;
			    left: 38rpx;
				.Tag{
					line-height: 63rpx;
					text-align: center;
					width: 42%;
					color: #767676;
					height: 100%;
					box-sizing: border-box;
					border-top: 2px solid #767676;
					background-color: #FFFFFF;
				}
				.TagActive{
					color: #000000;
					border-top: 4px solid #000000;
				}
		}
	}
	.background{
		width: 100%;
		height: 1037rpx;
		position: absolute;
		top: 1rpx;
		opacity: 0.6;
		z-index: 0;
		border-top-left-radius: 15px;
		border-top-right-radius: 15px;
	}
</style>
